<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Solve a system of linear equations</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="lapack.singularvalues.html">Lapack::singularValues</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="class.lapackexception.html">LapackException</a></div>
 <div class="up"><a href="class.lapack.html">Lapack</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="lapack.solvelinearequation" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">Lapack::solveLinearEquation</h1>
  <p class="verinfo">(PECL lapack &gt;= 0.1.0)</p><p class="refpurpose"><span class="refname">Lapack::solveLinearEquation</span> &mdash; <span class="dc-title">Solve a system of linear equations</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-lapack.solvelinearequation-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="modifier">static</span> <span class="type">array</span> <span class="methodname"><strong>Lapack::solveLinearEquation</strong></span>
    ( <span class="methodparam"><span class="type">array</span> <code class="parameter">$a</code></span>
   , <span class="methodparam"><span class="type">array</span> <code class="parameter">$b</code></span>
   )</div>

  <p class="para rdfs-comment">
    This function computes the solution to the system of linear
    equations with a square matrix A and multiple
    right-hand sides B. Solves A * X = B for multiple B. 
  </p>

 </div>


 <div class="refsect1 parameters" id="refsect1-lapack.solvelinearequation-parameters">
  <h3 class="title">参数</h3>
  <dl>

   
    <dt>
<em><code class="parameter">a</code></em></dt>

    <dd>

     <p class="para">
      Square matrix of linear equations
     </p>
    </dd>

   
   
    <dt>
<em><code class="parameter">b</code></em></dt>

    <dd>

     <p class="para">
      Right hand side to be solved for
     </p>
    </dd>

   
  </dl>

 </div>


 <div class="refsect1 returnvalues" id="refsect1-lapack.solvelinearequation-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
    Matrix X
  </p>
 </div>

 
 <div class="refsect1 examples" id="refsect1-lapack.solvelinearequation-examples">
      <h3 class="title">范例</h3>
      <p class="para">
       <div class="example" id="example-3355">
        <p><strong>Example #1 Using <span class="function"><a href="lapack.singularvalues.html" class="function">Lapack::singularValues()</a></span>:</strong></p>
        <div class="example-contents">
    <div class="phpcode"><code><span style="color: #000000">
<span style="color: #0000BB">&lt;?php<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;$a&nbsp;</span><span style="color: #007700">=&nbsp;array(<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;array(&nbsp;</span><span style="color: #0000BB">6.80</span><span style="color: #007700">,&nbsp;&nbsp;-</span><span style="color: #0000BB">6.05</span><span style="color: #007700">,&nbsp;&nbsp;-</span><span style="color: #0000BB">0.45</span><span style="color: #007700">,&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">8.32</span><span style="color: #007700">,&nbsp;&nbsp;-</span><span style="color: #0000BB">9.67&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">),<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;array(-</span><span style="color: #0000BB">2.11</span><span style="color: #007700">,&nbsp;&nbsp;-</span><span style="color: #0000BB">3.30</span><span style="color: #007700">,&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">2.58</span><span style="color: #007700">,&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">2.71</span><span style="color: #007700">,&nbsp;&nbsp;-</span><span style="color: #0000BB">5.14&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">),<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;array(&nbsp;</span><span style="color: #0000BB">5.66</span><span style="color: #007700">,&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">5.36</span><span style="color: #007700">,&nbsp;&nbsp;-</span><span style="color: #0000BB">2.70</span><span style="color: #007700">,&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">4.35</span><span style="color: #007700">,&nbsp;&nbsp;-</span><span style="color: #0000BB">7.26&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">),<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;array(&nbsp;</span><span style="color: #0000BB">5.97</span><span style="color: #007700">,&nbsp;&nbsp;-</span><span style="color: #0000BB">4.44</span><span style="color: #007700">,&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">0.27</span><span style="color: #007700">,&nbsp;&nbsp;-</span><span style="color: #0000BB">7.17</span><span style="color: #007700">,&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">6.08&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">),<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;array(&nbsp;</span><span style="color: #0000BB">8.23</span><span style="color: #007700">,&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">1.08</span><span style="color: #007700">,&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">9.04</span><span style="color: #007700">,&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">2.14</span><span style="color: #007700">,&nbsp;&nbsp;-</span><span style="color: #0000BB">6.87&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">),<br />&nbsp;&nbsp;&nbsp;&nbsp;);<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$b&nbsp;</span><span style="color: #007700">=&nbsp;array(<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;array(&nbsp;&nbsp;</span><span style="color: #0000BB">4.02</span><span style="color: #007700">,&nbsp;&nbsp;-</span><span style="color: #0000BB">1.56</span><span style="color: #007700">,&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">9.81&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">),<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;array(&nbsp;&nbsp;</span><span style="color: #0000BB">6.19</span><span style="color: #007700">,&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">4.00</span><span style="color: #007700">,&nbsp;&nbsp;-</span><span style="color: #0000BB">4.09&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">),<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;array(&nbsp;-</span><span style="color: #0000BB">8.22</span><span style="color: #007700">,&nbsp;&nbsp;-</span><span style="color: #0000BB">8.67</span><span style="color: #007700">,&nbsp;&nbsp;-</span><span style="color: #0000BB">4.57&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">),<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;array(&nbsp;-</span><span style="color: #0000BB">7.57</span><span style="color: #007700">,&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">1.75</span><span style="color: #007700">,&nbsp;&nbsp;-</span><span style="color: #0000BB">8.61&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">),<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;array(&nbsp;-</span><span style="color: #0000BB">3.03</span><span style="color: #007700">,&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">2.86</span><span style="color: #007700">,&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">8.99&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">),<br />&nbsp;&nbsp;&nbsp;&nbsp;);<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$result&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">Lapack</span><span style="color: #007700">::</span><span style="color: #0000BB">solveLinearEquation</span><span style="color: #007700">(</span><span style="color: #0000BB">$a</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$b</span><span style="color: #007700">);<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">?&gt;</span>
</span>
</code></div>
        </div>

       </div>
      </p>
     </div>



</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="lapack.singularvalues.html">Lapack::singularValues</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="class.lapackexception.html">LapackException</a></div>
 <div class="up"><a href="class.lapack.html">Lapack</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
